﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Data;
using System.Web.UI.WebControls;
using weikebuluo.Model;
using weikebuluo.DAL;
using weikebuluo.Common;

namespace weikebuluo.web.admin.other
{
    public partial class images : System.Web.UI.Page
    {
        w_vlimg_dal vlimgdal = new w_vlimg_dal();
        JsonOperate JsonOperate = new JsonOperate();

        protected void Page_Load(object sender, EventArgs e)
        {
            switch (Request.QueryString["action"])
            {
                case "list":
                    list();
                    break;
            }
        }

        //
        private void list()
        {
            DataTable dtimg = vlimgdal.GetList("mid=1").Tables[0];
            Response.Write(JsonOperate.TableToBasicJson(dtimg));
            Response.End();
        }
    }
}